void main() {
  //集合中的元素不能重复
  var mySet = new Set();
  mySet.add("香蕉");
  mySet.add("苹果");
  print(mySet);
  mySet.add("苹果");
  print(mySet);
  List myList = mySet.toList();
  print(myList);
  print("----------");

  //给list去重
  myList = ["苹果","香蕉","苹果","香蕉","苹果","香蕉"];
  print(myList);
  var s = new Set();
  s.addAll(myList);
  print(s);
  myList = s.toList();
  print(myList);
}
